{layout name="lottery/header" /}
<div id="app">
    <div class="lottery-wrapper index j_wrapper"  style="min-height:667px;background-image:url({$lottery.head_img});height: 29.85rem;background-size:cover">
        <a @click="toInfo()" class="start-btn" style="background: url(lottery_static/img/index-btn.png) no-repeat top center/100%;">
        </a>
    </div>
    <!--蒙层 end-->
    {include file="lottery/extend"}
</div>
<script>
    new Vue({
        el:"#app",
        data:{
            is_login:"{$is_login}",
            lottery_id:"{$lottery.id}",
        },
        created:function(){
        },
        computed:{
            enable_logout:function () {
                var ua = navigator.userAgent;
                if( ua.indexOf(this.userAgent)<0 && (this.is_login == 1)){
                    return 1;
                }
                return 0;
            }
        },
        methods:{
            //跳转到详情页
            toInfo:function(){
                window.location.href="{:url('info')}"+"/id/"+this.lottery_id
            },

            checkIsApp:function () {
                return checkApp(this.userAgent,this.enableCheck)
            }
        },
    })
</script>



